from django.utils.deprecation import MiddlewareMixin


class middleware02(MiddlewareMixin):

    def process_request(self, request):
        print("Demo02____request请求")


    def process_response(self, request, response):
        print("Demo02____response")
        return response